<?php
/*
 * File: application.php
 * Author: Andrew Saponenko <roguevoo@gmail.com>
 * Description: This file is a part of Zoombi PHP Framework
 */

if( !defined('ZBOOT') )
	return;

/**
 * Base class for application plugun
 */
class ZApplicationPlugin extends ZPlugin
{
    /**
     * Before application make execute action
     */
    function preExecute()
    {}

    /**
     * Before application do routing action
     */
    function preRoute()
    {}

    /**
     * After application alredy do routing action
     */
    function postRoute()
    {}

    /**
     * Before application create controller
     */
    function preController()
    {}

    /**
     * If routed controller not exist
     */
    function on404()
    {}

    /**
     * After application create controller
     */
    function postController()
    {}

    /**
     * Before application call controller action
     */
    function preAction()
    {}

    /**
     * After application call controller action
     */
    function postAction()
    {}

    /**
     * On application print output to browser
     */
    function onOutput()
    {}

    /**
     * After application execute
     */
    function postExecute()
    {}
}
